package com.heisenhub.file.domin.impl;

import com.heisenhub.file.common.dto.FileDto;
import com.heisenhub.file.domin.FileStorageService;
import com.heisenhub.file.entity.OpFile;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Slf4j
@Service
@ConditionalOnProperty(value = "file.service.name", havingValue = "qiniu",matchIfMissing = false)
public class QiNiuFileStorageService implements FileStorageService {
    @Override
    public List<OpFile> upload(MultipartFile[] files, FileDto fileDto) {
        return null;
    }

    @Override
    public String fileUrl(String bucketName, String fileName) {
        return null;
    }

    @Override
    public void delete(String bucketName, String fileName) {

    }

    @Override
    public void download(String bucketName, String fileName, HttpServletResponse response) {

    }
}
